﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Collections.Generic;
using System.ComponentModel;

namespace aucn.web.au.code
{
    public class MasterDept
    {
        private string _id, _deptName, _deptChName, _desc;
        private List<Major> _programs;

        [Bindable(true)]
        public string DeptId { get { return this._id; } set { this._id = value; } }
        [Bindable(true)]
        public string DeptName { get { return this._deptName; } set { this._deptName = value; } }
        [Bindable(true)]
        public string DeptChName { get { return this._deptChName; } set { this._deptChName = value; } }
        [Bindable(true)]
        public string Description { get { return this._desc; } set { this._desc = value; } }
        [Bindable(true)]
        public List<Major> ProgramList { get { return this._programs; } set { this._programs = value; } }

        public MasterDept(string id, string name, string chName, string desc, List<Major> majorList)
        {
            this._id = id;
            this._deptName = name;
            this._deptChName = chName;
            this._desc = desc;
            this._programs = majorList;
        }
    }
}
